home *** CD-ROM | disk | FTP | other *** search
- /*------------------------------------------------------------------------*/
- /* */
- /* USING eTimer */
- /* */
- /* The first proc calling et_startTime() will cause the invocation of */
- /* et_init(). This call should contain a larger id value than any other */
- /* since this value is used to dimension the arrays. */
- /* */
- /* Each PROC being timed should call et_startTimer() immediately upon */
- /* entering the PROC, and call et_stopTimer() just before exiting the */
- /* PROC. Calls to these two functions require a unique proc-id as */
- /* parameter (0-n.) It is probably best to set up ENUMS for this and */
- /* just convert the PROC name to uppercase. et_startTimer() accepts a */
- /* POINTER TO STRING that is printed by et_report(), which is better than */
- /* just a proc-id. NIL *can* be passed if you don't want to bother with */
- /* the proc-names. */
- /* et_report() is automatically called upon the exiting call to */
- /* et_stopTimer() (which should be at the end of PROC main().) Actually, */
- /* this timing algorithm should work just as well for timing parts of a */
- /* program .vs. the whole thing, as long as the calls to et_startTimer() */
- /* and et_stopTimer() are balanced. */
- /*------------------------------------------------------------------------*/
-